<html>
    <head>
        <title></title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script type="text/javascript" src="./public/js/jquery-3.1.1.min.js"></script>
    </head>
    <body>
        <table border="1">
            <tr>
                <td>编号</td>
                <td>标题</td>
                <td>内容</td>
                <td>添加时间</td>
                <td>操作</td>
            </tr>
            {foreach from=$list key=$k item=$v}
            <tr id="id">
                <td>{$v.id}</td>
                <td>{$v.title}</td>
                <td>{$v.content}</td>
                <td>{$v.add_time}</td>
                <td><a href="./index.php?m=Admin&c=new&a=newupdateSmarty&id={$v.id}" class="update">修改</a>|
                    <a href="javascript:;" class="delect"  name="{$v.id}">删除</a></td>
            </tr>
            {/foreach}
        </table>
           <a href="index.php?m=Admin&c=new&a=newlist&page=1">首页</a>
           {if $page > 1}
            <a href="index.php?m=Admin&c=new&a=newlist&page={$page-1}">上一页</a>
            {/if}
            {if $page < $pagecount}
            <a href="index.php?m=Admin&c=new&a=newlist&page={$page+1}">下一页</a>
            {/if}
            <a href="index.php?m=Admin&c=new&a=newlist&page={$pagecount}">尾页</a>
  </body>
</html>
<script type="text/javascript" src="./public/js/delete.js"></script>

